package team.seekers.oj.course.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import team.seekers.oj.common.entity.BaseDO;

import java.util.Date;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(CourseLiveDOField.TABLE_NAME)
public class CourseLiveDO extends BaseDO {

    @TableId(value = CourseLiveDOField.ID, type = IdType.AUTO)
    private Long id;

    @TableField(value = CourseLiveDOField.GMT_CREATE, fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(value = CourseLiveDOField.GMT_MODIFIED, fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableField(CourseLiveDOField.DELETED)
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;

    @TableField(CourseLiveDOField.VERSION)
    @Version
    private Integer version;



    @TableField(CourseLiveDOField.COURSE_ID)
    private Long courseId;

    @TableField(CourseLiveDOField.TITLE)
    private String title;


    @TableField(CourseLiveDOField.STATUS)
    private Integer status;



    @TableField(CourseLiveDOField.PUSH_ADDRESS)
    private String pushAddress;

    @TableField(CourseLiveDOField.PULL_ADDRESS)
    private String pullAddress;

    @TableField(CourseLiveDOField.RECORD_ADDRESS)
    private String recordAddress;

}